/**
* @Author:wjp
* @Date:2021/2/2 10:35 上午
 */
package xsnowflake

import (
	"fmt"
	"math/rand"
	"time"
)

func RandCode() string {
	num := fmt.Sprintf("%06v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(1000000))
	return num
}
